X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitlePermissionTest.php;fp=tests%2Fphpunit%2Fincludes%2FTitlePermissionTest.php;h=3d8c6439bf86087115a8a04249f59f9cb34f2194;hb=10e2511f81d329c9ad401dd979e6ccd9fb64d987;hp=cac5d6b2eec5232ff90781d6fedc5444154ef7a5;hpb=0e24c6a44d70697312ceda8dc333b41e993e1e4a;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitlePermissionTest.php b/tests/phpunit/includes/TitlePermissionTest.php index cac5d6b2ee..3d8c6439bf 100644 --- a/tests/phpunit/includes/TitlePermissionTest.php +++ b/tests/phpunit/includes/TitlePermissionTest.php @@ -1029,6 +1029,13 @@ class TitlePermissionTest extends MediaWikiLangTestCase { $this->title->getUserPermissionsErrors( 'upload', $this->user ) ); $this->assertEquals( [], $this->title->getUserPermissionsErrors( 'purge', $this->user ) ); + + // Test no block. + $this->user->mBlockedby = null; + $this->user->mBlock = null; + + $this->assertEquals( [], + $this->title->getUserPermissionsErrors( 'edit', $this->user ) ); } /**